package com.vincent.template.dto.sys.uri;

import com.vincent.template.commons.constanst.EnumType;
import com.vincent.template.commons.validation.constraints.MatchEnum;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Null;

/**
 * @author Vincent Wang
 * @date 2021/3/22 21:52
 */
public class UriDto {

    @ApiModelProperty(value = "URI ID", hidden = true)
    @Null
    private Long id;

    @ApiModelProperty(value = "pattern")
    @Length(max = 256)
    private String pattern;

    @ApiModelProperty(value = "请求方式")
    @MatchEnum(required = false, type = EnumType.REQUEST_MODE)
    private String mode;

    @ApiModelProperty(value = "uri描述")
    @Length(max = 128)
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
